package com.techfengs.test11;

import java.util.InputMismatchException;

public class Test {
	public static void main (String[] args) {
		// 两个数求商
		try {
			int num1 = 12;
			int num2 = 3;
			System.out.println("两个数的商" + num1/num2);
		} catch(InputMismatchException e){
			System.out.println("对不起，程序出现了错误");
		} finally {
			System.out.println("程序无论是否出现异常，这个逻辑都必须执行");
		}
		System.out.println("上面是两个数相除的案例");
	}
}
